﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Sisocana.Core.Models.RedSocialAsociadoModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Site Configuration
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
    <%--para el menu para el menu--%>
    	
    <link href="../../Content/tabbedContent.css" rel="stylesheet" type="text/css" />
	<script src="../../Scripts/tabbedContent.js" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery-ui-1.8.11.js") %>" type="text/javascript"></script>
    <link href="<%: Url.Content("~/Content/themes/base/jquery.ui.all.css") %>" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            $("p a, input:submit,input:file ").button();
        });
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Site Configuration</h2>
 <fieldset>

    <% Html.RenderPartial("MenuEditSite", ViewData["idSitio"]); %>

    <p>
         <%: Html.ActionLink("Create New", "CreateRS", new { id = ViewData["idSitio"]})%>
    </p>

    <h3>Social network Asociated.</h3>
<table>
    <tr>
        <th></th>
        <th>
            Social Network Name
        </th>
        <th>
            Service Account
        </th>
        <th>
            Search Tag
        </th>
        <th>
            Size
        </th>

    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: Html.ActionLink("Edit", "EditRS", new { id=item.id }) %> |            
            <%: Html.ActionLink("Delete", "DeleteRS", new { id=item.id }) %>
        </td>    
        
        <td>
            <%: item.RedesSocialesName %>
            <img alt="logo" height="15px" width"15px"   src='<%= Url.Action( "imagen", "RedesSociales", new { id = item.RedesSocialesName.Trim() } ) %>' />
        </td>
        <td>
            <%: item.tagUser%>
        </td>
        <td>
            <%: item.tagBusqueda %>
        </td>
        <td>
            <%: item.cantVisualizar %>
        </td>
    </tr>  
<% } %>

</table>

</fieldset>
</asp:Content>



